Began functionality of the main game