added functionality for selecting tiles on layered grid, adding and removing layers