implemented the force-based algorithm, but it's still stuck on an infinite
loop