Began building main game loop