had to do some indents to get it to run -- had no idea what i'm doing sry /=
changed to integer-valued heuristic function