Added working win condition checker

changed checkWin