Pulled the anon class for mouselistener out into a private class of
TilePanel.

In the process of adding support for linking tiles.