Add win condition checking