implemented socket rooms for each pad. fixed a bunch of errors with accidentally global variables.