Made the broadcastGameState function check if game exists before broadcasting and added support for single player online multiplayer for debugging purposes