-*-pa-*- extracted some functions
-*-pa-*- speed up cheapest and all small moves