Grid2D class, path(), and turn_is_legal