server: refactor message parser from Game class to ws instance