public JsonResult MovePiece([FromBody] PieceMovement pieceMovement)
        {
            if (pieceMovement != null && pieceMovement.isValidPieceMovement())
            {
                try {
                    DataWarehouse.games.movePiece(pieceMovement.gameId,
                                                  pieceMovement.name,
                                                  pieceMovement.initialPosition,
                                                  pieceMovement.finalPosition);

                    Game game = DataWarehouse.games.searchGame(pieceMovement.gameId);
                    Response.StatusCode = 201;
                    return(Json(game));
                }
                catch (Exception e) {
                    Response.StatusCode = 400;
                    return(Json(e.Message));
                }
            }
            else
            {
                Response.StatusCode = 400;
                return(null);
            }
        }