server wasn't setting the boolean running to true and so it wasn't doing anything excepting handling connections