public boolean checkCanMove(Block[][] boardMatrix, int firstBlockX, int firstBlockY, int secBlockX, int secBlockY, int thirdBlockX, int thirdBlockY,
			int fourthBlockX, int fourthBlockY)
	{
		for (int i = 0; i < getBlocks().length; i++) {
			Block tempBlock = getBlocks()[i];
			int x = tempBlock.getX();
			int y = tempBlock.getY();

			// XXX Handle array bounds.
			// int boardWidth = boardCons.getBoardWidth();
			// if(y + thirdBlockY >= boardWidth || y + firstBlockY >=
			// boardWidth)
			// return false;

			// if(y + thirdBlockY < 0 || y + firstBlockY < 0)
			// return false;

			if (i == 0) {
				if (boardMatrix[x + firstBlockX][y + firstBlockY] != null)
					return false;
			}

			if (i == 1) {
				if (boardMatrix[x + secBlockX][y + secBlockY] != null)
					return false;
			}

			if (i == 2) {
				if (boardMatrix[x + thirdBlockX][y + thirdBlockY] != null)
					return false;
			}

			if (i == 3) {
				if (boardMatrix[x + fourthBlockX][y + fourthBlockY] != null)
					return false;
			}
		}

		return true;
	}