graph code by me more info: https://en.wikipedia.org/wiki/Collatz_conjecture 22/09/23 - updated it so that it always keeps the graph within the bounds of the screen