18May2011
made ballMoved the key to change mass m[ballMoved] instead of the older code m[id]
change the codes to layout the balls from left to right instead of the older right to left format

enjoy!