Added basic server code for networking