Java implementation of the game Mastermind