Get rid of "magic booleans" and replace with constants WIN and LOSE.