Moved the collectedRocks variable declaration to the start of the program.