tempcommit
fixed some stuff; needs cleanup
removed some debug code and fixed a warning
added functions to clear tiles in a map layer
bound Layer::clearTiles to lua