Fixed unending loop after player makes winning move.