@Override
	public void mouseClicked(MouseEvent e){
		Point offsettedLocation = e.getPoint();
		boolean tileExists = view.hasTile(offsettedLocation);
		if (e.getButton() == MouseEvent.BUTTON1){
			Point tileLocation = view.getTileLocation(offsettedLocation);
			
			if (tileExists){
				Tile clickTile = view.getTile(offsettedLocation);
				if (clickTile.isEmpty()){
					removeTile(clickTile);
				}
				else { //double check removal if there are things on the tile
					if (JOptionPane.showConfirmDialog(levelEditorFrame, "This tile is not empty, remove anyways?") == JOptionPane.YES_OPTION){
						removeTile(clickTile);
					}
				}
			}
			else {
				addTile(tileLocation);
			}
		}
		else if (tileExists){
			Tile clickTile = view.getTile(offsettedLocation);
			new TileNavigator(levelEditorFrame, this, clickTile);
		}
	}