Update GA.cpp with changes in pointer