broke accept method out of main, placed in separate method called Accept() that returns an int