public static GameDetail fromGameStateMachine(GameStateMachine gameMachine)
        {
            GameDetail detail = new GameDetail();

            // Convert BoardStateMachine to BoardDetail   
            char[,] cPieces = gameMachine.getBoardMachine().getBoard().serialize();
            BoardDetail boardDetail = new BoardDetail(cPieces);

            // Convert from PlayerStateMachine to PlayerDetail
            PlayerDetail[] playerDetails = new PlayerDetail[2]; // STUB
            playerDetails[0] = new PlayerDetail(gameMachine.getBoardMachine().getPieces(Color.BLACK));
            playerDetails[1] = new PlayerDetail(gameMachine.getBoardMachine().getPieces(Color.RED));

            // Game detail
            detail.boardDetail = boardDetail;
            detail.playerDetails = playerDetails;

            return detail;
        }
 public GameCreatedEvent(GameDetail detail)
 {
     this.detail = detail;
 }