Okay solved. There was a behavior I had not noticed at all. When the rabbit enters the hat, the hat itself moves one grid up.