added end game when there's time out.