Rewrote winnerCheck() and tidied up code.