Created test for a complete game loop