Refactors the AStar code to not be retarded.  Works just like it used to

Also, removes the "bestF" variable which belonged to EVERY. GODDAMN. OBJECT.