fixed failure to end game after rotation problem