A simple game of mastermind written in java