UE5 C++ Survival Game EP 34 - Refactoring and bug fix