Mastermind Game in Java