Update encounter.cpp