@Override
		public void mouseClicked(MouseEvent arg0) {

			// int x = arg0.getX()/currentMap.getWidth();
			// int y = arg0.getY()/currentMap.getHeight();
			int x = arg0.getX() / TILE_DIMENSION;
			int y = arg0.getY() / TILE_DIMENSION;
			if (theGame.canPlaceTower(x, y) && theGame.getIsPlacingTower()) {
				theGame.createTower(x, y, theGame.getCurrentTowerSelected());
				theGame.setCurrentTowerInfo((Tower) currentMap.getObject(x, y));
				theGame.setIsPlacingTower(false);
				theGame.notifyObservers();
			}
			else if (!theGame.getIsPlacingTower() && theGame.getCurrentMap().getTile(x, y).isOnPath() && theGame.getCurrentMap().getTile(x, y).getMobs().size() != 0) {
				theGame.setCurrentTowerInfo(null);
				theGame.setCurrentMobsInfo(currentMap.getTile(x, y).getMobs());
				theGame.notifyObservers();
			}
			else if (theGame.getIsPlacingTower() == false && theGame.canPlaceTower(x, y)){
				theGame.setCurrentTowerInfo(null);
				theGame.setCurrentMobsInfo(null);
				theGame.notifyObservers();
			}
			else if (theGame.getIsPlacingTower() == false && theGame.getCurrentMap().getTile(x, y).isOnPath()){
				theGame.setCurrentTowerInfo(null);
				theGame.setCurrentMobsInfo(null);
				theGame.notifyObservers();
			}
			else {
				theGame.setCurrentTowerInfo((Tower) currentMap.getObject(x, y));
				theGame.notifyObservers();
			}
			
		}