Added a collision layer to tilemaps for collision detection using a quadtree.