separated mouse click handling for GUI / TileMap

This makes the editor much easier to work with and also provides
coordinates for tiles with the same raycasting technique. This class
desperately needs refactoring.