code: function isMyTurn(game, from) {
      if (game.score.ended)
          return false;
      from = Board.getPositionFromBoard(game.board, from);
      return isWhiteTurn(game) ? Position.hasWhitePiece(from) : Position.hasBlackPiece(from);
  }
docs: Returns true if from piece can be played.