Convert to using tiles.

Converts to using tiles, using the HTML5 canvas element.