Working multithreaded server/client

all functions in Client.java can be called from gui/backend