code improvements

-modified grey object's scripted movement
-replaced compare methods with equavalents from math.h
-final velocity now calculated using conservation of momentum