public boolean isYBlocked(int x, int y, int width, int height, float moveY) {
		// If there is no movement in y direction.
		if (moveY == 0) {
			return false;
		}

		// Calculates the correct y, depending on the move direction.
		int yindex1;
		if (moveY < 0) {
			yindex1 = (int) Math.floor(y / getDimension());
		} else {
			yindex1 = (int) Math.floor((y + height) / getDimension());
		}

		// Calculates the two x's.
		int xindex1 = (int) Math.floor((x + 1) / getDimension());
		int xindex2 = (int) Math.floor((x + width - 1) / getDimension());

		// Checks if one of the two points is blocked. If so, the path is blocked.
		if (pathingMap[yindex1][xindex1] == P.BLOCK || pathingMap[yindex1][xindex2] == P.BLOCK) {
			return true;
		}

		// If no point is blocked, the path is free.
		return false;
	}