adding some stuff to get the tile drawing on the canvas