sorting works, heuristic and upper and lower bounds work, need to re-implement nextstate