new mining algorythm working