Implementation of the Mastermind game in Java