Function checkWin added, not completed yetO