Code for Entanglement improves coordination in distributed systems