added X brick and algorithm to add extra bricks