Rewrote the winnerCheck() function.
Added comments.