CANCEL_GAME|gameID  :                               sent to server to cancel a particular game (when game creator exit or choose to cancel)
CREATE_GAME|gameName|maxPlayer|gameType :           creat a game on server
CREATE_GAME_STATUS|SUCCESSFUL:                      result of creating game, sent to game creator

HOST_DETAILS|hostIP|hostPort :                       detail of the host sent from server to client requesting host details to join game

GET_HOST|gameID     :                               get the host of a particular game
GAME_LIST|gameID0|gameName0|gameID1|gameName1:      contains the game list sent to client
GET_PLAYER_NAME_LIST :                              sent from client to host to retrieve the list of player name, currently joining the game

JOIN_GAME|nickName  :                               sent to host when want to join game
JOIN_GAME|1 :                                       sent from host to client saying that joining successful
JOIN_GAME|0|msg:                                    sent from host to client saying that joining unsuccessful, with the error message

LOAD_PLAYER_FINISH|pID				    sent from client to host, contains the id of the player, telling that the player info has been loaded successfully.

PLAYER_NAME_LIST|name1|name2...                     sent from host to client, contains the list of names of currently joining players
PLAYER_INFO|numplayer|id|initPos1|initPos2	    sent from host to client, contains the id assigned to client, the initposition of each player

//---------- IN GAME --------------------------

M|id|posX|posY|dir