Added new way to exit game loop