@Override
	public void mouseReleased(MouseEvent e)
	{
		fEndPoint = e.getPoint();
        Tile startTile = fMap.getTile(fStartPoint);
        Tile endTile = fMap.getTile(fEndPoint);
        if( startTile != null && startTile.equals(endTile))
        {
            mouseClicked(e);
        }else
        {
            Line2D.Double line = new Line2D.Double(fStartPoint,fEndPoint);
            for (Tile[] tiles : fMap.getTiles())
            {
                for (Tile tile : tiles)
                {
                    if(line.intersects(tile.getRect()))
                    {
                        fGlobals.getStreetFactory().createStreet(tile, fGlobals.getSelectedStreetTemplate());
                    }
                }
            }
        }
        fGlobals.getMap().handleAddition();

	}