Edited money array to not be global