refactors tests for game_loop