Relations and Functions assignment - Mastermind