finished the core of the game