Refactor Connect to Room
The connect to room function was badly implemented and needed work. We did a refactor of the function both on the server and the client and it now functions better and is more intuitive to read and use. We also added better linting and auto-linting on save.