PLEASE TAKE YOUR CAT TO THE VET IF YOU SEE THEM DOING THIS BEHAVIOR OVER TIME.
It’s called “head pressing” and it occurs in dogs and cats.
Head pressing is characterized by the compulsive act of pressing the head against a wall or other object for no apparent reason. This generally indicates damage to the nervous system, which may result from a number of varying causes, including prosencephalon disease (in which the forebrain and thalamusparts of the brain are damaged), or toxic poisoning.
A Pythagorean cup looks like a normal drinking cup, except that the bowl has a central column in it. It was supposedly invented by Pythagoras of Samos (yes, that one). It allows the user to fill the cup with wine up to a certain level. If the user fills only to that level, the imbiber may enjoy a drink in peace. If, however, the user gets greedy, the cup dumps all the wine into the unfortunate victim’s lap.