Mastermind guessing game written in Java