clicking on tile either fires the function 'selectTile' if defined by user or populates an observable 'selectedTile' if it is defined by user. Once a tile is selected, the 'selected' style is applied to the tile.