g = cost from start | h = heuristic (Manhattan to goal) | f = total estimated cost
A* uses f(n)=g(n)+h(n). Pick the cell with the lowest f-value from the open set, or predict which neighbors get added!