fixed winning condition bug
fixed weird control condition statement