A 2D Simulation of interacting dipoles