Cosmo Game: Started refactor for multiplayer capabilities