split up gameloop() into game_event() game_action() and game_draw(),