Built in the majority of the game logic