joinRoom Implementation

Added the implementation for the functionality of the function joinRoom