Adds boucing algorythm (lots of bug)