Fixed check for a win