Analysis of coordination in multi-agent systems through partial difference equations