fixed typo in win conditions function