Made the canvas change size based on tiles.