Updated Character class's encounter method.