Solution for mastermind challenge. Play it in your console!