Removed unnecessary cast.
Added a constructor for setting the netcode configuration.
Inject netcode configuration into the configuration screen controller.