mastermind game, first version without framework.