public void dispatchInstructions(boolean leftDown, boolean rightDown) {
		int width = shape.width();
		// int height = shape.height();

		if (leftDown) {
			if (animation != movementLeft) {
				swapAnimation(movementLeft);
			}
			if (x > 0) {
				x -= movementDistance;
			}
			leftOffRight = false;
		} else if (rightDown) {
			if (animation != movementRight) {
				swapAnimation(movementRight);
			}
			if (x < game.getMap().width() - width) {
				x += movementDistance;
			}
			leftOffRight = true;
		} else {
			if (animation != null || shape != STILL_RIGHT || shape != STILL_LEFT) {
				swapAnimation(null);
				this.revert();
			}
		}

	}