The game mastermind in Java