Added isWin, isLose checks