generating position for stairsdown