Refactor repeated logic(messages and server logic) from lobby and table into a clientList class