worked on my project a little more
something was wrong with this algorithm ..