Fixed problem with shared_ptr deallocation. Broke goal detection.