end game properly.