Fixes the edge of map bugs

Fixes the edge of map bugs.  Still to fix: title screen, very weird
error when going to top left of screen and then rightwards.  Also to do
is re-implement looking with tiles.