made Client and Server seperate, in files and with objects