Update ga.cpp