finished game winning logic