Change implementation of getSnapshot() to not modify local memory. New implementation able to pass test 1 and test 2.
Passed test 3 for getSnapshot(). Minor changes to some variable names