Snake game logic completed