Changable count of squares in chain