@Override
	public void mousePressed(int button, int x, int y) {
		// TODO Auto-generated method stub
		super.mousePressed(button, x, y);
		if(!developerMode){
			return;
		}
		if(button == Input.MOUSE_RIGHT_BUTTON) {
			grabbedTileId = Area.getAreaControl().getMap(0).getTileId((int)((x + camera.getX()) / TILE_SIZE), (int)((y + camera.getY()) / TILE_SIZE), 0);
			try {
				if(grabbedTileId != 0) {
					selectionImage = new Image(SlimeGame.basePath + "res//tile" + grabbedTileId + ".png");
				}
			} catch (SlickException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
			
		} else if(button == Input.MOUSE_LEFT_BUTTON) {
			if(grabbedTileId != 99 && !player.getSpace().intersects(new Rectangle(x + camera.getX() - (TILE_SIZE / 2), y + camera.getY() - (TILE_SIZE / 2), TILE_SIZE, TILE_SIZE))) {
				Area.getAreaControl().getMap(0).setTileId((int)((x + camera.getX()) / TILE_SIZE), (int)((y + camera.getY()) / TILE_SIZE), 0, grabbedTileId);
				Area.getAreaControl().updateBlocked(0);
				
				List<Integer> temp = Collections.unmodifiableList(Arrays.asList((int)((x + camera.getX()) / TILE_SIZE),(int)((y + camera.getY()) / TILE_SIZE) ));
				
				changedTileList.put(temp, (Integer)grabbedTileId);
			}
			System.out.println("X:" + x + "Y:" + y + "width:" + TILE_SIZE);
		}
	}