Fixed game winning logic