Fix type in snake game.