Add win condition checking to game logic