Update rpg.cpp