got elastic collisions working