cleaned up a bunch of gamemath stuff

I'm too lazy to write anymore. big commit