This might look simple, but it’s paramount that this function works well in order to avoid any bugs that cascade later down in the algorithm. Now we have a grid. Cool! But there’s no pathfinding, or a ...