7 points

Few changes:
-Added interface GenericState, and Search Functions in Utils, so we
don't need to copy it every time
-Change a little, the heuristic, I don't know if it was a bug (the "min
= Integer.MAX_VALUE" was outside the 2 for loops, I think it should be
inside the first one).