private void getNextPosition() {
		if (left) {
			x = x - moveSpeed;
			if (x < width / 2) {
				x = width / 2;
			}

		}

		if (right) {
			x = x + moveSpeed;
			if (x > mapWidth - width / 2) {
				x = mapWidth - width / 2;
			}
		}

	}