Fix some bugs in game

Can't remember what I did
There're still bugs when a line is eaten, check DEBUGGING and TODO flags in game.py