private void move() {
		xa = 0;
		ya = 0;
		int px = (int)level.getPlayerAt(0).getX();
		int py = (int)level.getPlayerAt(0).getY();
		Vector2i start = new Vector2i((int)getX() >> 4, (int)getY() >> 4);
		Vector2i destination = new Vector2i(px >> 4, py >> 4);
		if(time % 3 == 0) path = level.findPath(start, destination); //Run search alg. 20 times per second
		if(path != null) {
			if(path.size() > 0) {
				Vector2i vec = path.get(path.size() - 1).tile; //To get correct side of the list of nodes
				if(x < vec.getX() << 4) xa += speed;
				if(x > vec.getX() << 4) xa -= speed;
				if(y < vec.getY() << 4) ya += speed;
				if(y > vec.getY() << 4) ya -= speed;
			}
		} //an else here will set a seperate AI
		
		if(xa != 0 || ya != 0) {
			move(xa, ya);
			walking = true;
		} else {
			walking = false;
		}
	}