improve utility function according position of disks

define a new attribute of State, which is the stability of disks