conversion to 3d

actually had been working on this for a while.
Has mostly gone smoothly but lately there's been some issues with
scaling of the grid on the screen.