Text this: Surpassing the classical limit in magic square game with distant quantum dots coupled to optical cavities