rough mastermind soln