Fixed AI getting one final move after player wins (sore loser)