public void move(Direction dir) {
		double change;
		if (modify instanceof Player) {
			change = ((Player) modify).getStats().moveSpeed;
		} else {
			change = 1.0;
		}

		Level level = modify.getLevel();

		switch (dir) {
		case UP:
			if (level.tryMove(this, x, y - change)) {
				y -= change;
			}
			break;
		case DOWN:
			if (level.tryMove(this, x, y + change)) {
				y += change;
			}
			break;
		case LEFT:
			if (level.tryMove(this, x - change, y)) {
				x -= change;
			}
			break;
		case RIGHT:
			if (level.tryMove(this, x + change, y)) {
				x += change;
			}
			break;
		default:
			break;
		}
	}