function crownPieceIfPossible({x, y}) {  
  const regularType = nowPlaying[0], 
        kingType = nowPlaying[1];
  
  const piece = getTile.apply(null, translateBoardToXY(argsToObj(x, y)))
    .filter((piece) => piece.type === regularType)[0];

  // If no piece was found in the given coordinates, return
  if (piece === undefined) return;

  // It is normally called a kingsRow, but here the entire board has been turned 90 degrees, so...
  const kingsColumn = nowPlaying === PLAYERS.BLACK ? width() - 1 : 0;
  
  // If the given tile is in the kingsColumn, crown it
  if (piece.x === kingsColumn) {
    // Remove the piece
    piece.remove();

    // Add a new king piece at the same location
    addSprite(piece.x, piece.y, kingType);
  }
}
Crowns the piece on the given coordinates if possible
Note: that the coordinates are in the Board format