Java implementation of the Mastermind game