Attractor Algorithm changed

#10 finished