building the game engine