 bouncing balls in 3d space(3)

someone please refactor this.