Code for running matches with a sandbox.