beginning win logic