private void updatemove() {
		xa = 0;
		ya = 0;
		int px = engine.getPlayer().getX() - (engine.getPlayer().xSize >> 1);
		int py = engine.getPlayer().getY() - (engine.getPlayer().ySize >> 1);
		Vector2i start = new Vector2i(Vector2Type.BY_TILE).setPixelToTile(getX(), getY());
		Vector2i destination = new Vector2i(Vector2Type.BY_TILE).setPixelToTile(px, py);
		if(time % 3 == 0) path = level.findPath(start, destination);
		if (path != null) {
			if (path.size() > 0) {
				Vector2i vec = path.get(path.size() - 1).tile;
				if(x < vec.getPixelX()) xa+=2;
				if(x > vec.getPixelX()) xa-=2;
				if(y < vec.getPixelY()) ya+=2;
				if(y > vec.getPixelY()) ya-=2;
				
			}
		}
		
		
	}