fixed game winner code