Fixed some bugs and changed how the clients work