Improved reveal logic. Added win condition.