Add four main game functions to game loop.