Improved physics, more stuff put in functions

A lot of formulas where wrong, they have been fixed now. Things like
calculating radius, circumference, etc are put in functions. Now I only
have to change the formulas in 1 place. A background has been added.