Went on writing c++ leap frog puzzle solution