cleanup in Stability class, edge-calculation

cleaned code in the Stability class, edge-calculation without stable2
pieces (are considered stable1) works, x-pieces still to be done!
probabilistic search tbd too