Mastermind game written in Scala