fixed bug to allow last move to win