An effective Classical model for dissipative Josephson junction arrays