Adds arrays, coords, and random code in main method.