Adding tile weight function and some event types for the tiles