Implemented checkWin