@Override
	public void run() {

		try {
			Thread.sleep(1000);
		} catch (InterruptedException e1) {
			e1.printStackTrace();
		} 
		inusetime=50;
		inuse = true;
		rinuse = true;
		if(engine.getPhysics().canMove(this, this.getLocation().getX(), this.getLocation().getY()))
			inusetime--;
		
		while(inusetime >= 0){
			try {
				Thread.sleep(100);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			if(engine.getPhysics().canMove(this, this.getLocation().getX(), this.getLocation().getY()))
			inusetime--;

		}
		
		inusetime = 0;
		inuse = false;
		rinuse = false;
	}