added undivmod() to gamemath

undivmod() is essentially the inverse of divmod()

except the parameters don't PERFECTLY line up like i would like them
to - divmod() returns a tuple and undivmod() takes them in as separate
parameters