moved sleep logic from gem into game_controller