Moved main() to client(), startServer() to serverListener(). Made new main().