Fixed bug with drawing out of bound tiles.