Making direction an attribute of the game engine
Moving snake to its own class and making the game engine responsible for its creation