I have more than two balls colliding...i.e AB, BC, CA can all collide. The problem I have is with placing balls B and C at set coordinates. I have ball A working in set coordinates, but ball B and C share the same X and Y coordinates

i.e: x=Math.random()*wx;

When i change the above to say, 100 and 200, both B and C balls move to that place. I need separate X and Y coordinates to be assigned but also work in the collision method.

I have new instance of a ball which allows me the third ball, but the new instance has the same value as B the second ball.