Fix undrawn tiles across map edges.

Also remove unwanted debug printing.