Fixed bug in checkForWin - wrong win variable