now that Im not trying to maximize my h value everything works a little bit better. Simulated annealing seems to work with a pretty high probability