Tile drawing code finished.