Made helper functions private. Refactored code. Working on getting joinGame to work