Added code field to leagues and added a constraint in guesses.