Mastermind game written in Java