Making server an infinite loop like it should be