Setting up the SnakeGame class