changed ReconstructCommand to ArrayList instead of saving each one