marble run calculations