Pass current game g to heuristic methods

For https://bugzilla.gnome.org/show_bug.cgi?id=708179