How charges interact in Canvas/Javascript