Fixed a bug that could cause squares to change the winner incorrectly