math now works correctly

fixed a bug where the cat would catch the mouse at incorrect times and
all the animals would move incorrect amounts.