Building the game engine