Group tiles by shape, add title

The title is displayed as a tooltip in Firefox.