Fixes a bug.
A bug where if the food spawns on the edge of the map and you try to eat it while going through the opposite wall, you fail.