Changed global state variable to NetworkedStateManager.hpp