add falling  algorithm