NetServer setup
Refactored server to Main