Use library char functions.
Towards more generic grid shapes.

Also looking at fixing the bugs with gaps in grid data.