Master mind implementation