Write a simple snake game that allows users to control the snake to eat food. The game should end when the snake hits the wall or itself.