cleaned up gamemath.py