Implemented Server and handle all connections