Simulating quantum correlations with and without communication