changed win logic to booleans rather than modulus with remainder of even or odd