Bugfix for find_gcd function

Removed extra variables in function, change names in arguments.
Further fixes, still non-functional.

When the if/else if and do/do while (code 74-96) are commented out,
the program will not crash or hang.