Corrected the retrieve solution function to work with the pushes
approach