public void limitMaximumSpeed() {
		// prevent speed from getting to fast
		if (xOffset > MAX_SPEED)
			xOffset = MAX_SPEED;

		if (xOffset < -MAX_SPEED)
			xOffset = -MAX_SPEED;

		if (yOffset > MAX_SPEED)
			yOffset = MAX_SPEED;

		if (yOffset < -MAX_SPEED)
			yOffset = -MAX_SPEED;
	}