algorithm for solving mastermind like game