Fixed heuristics

They now min-max correctly, probably.