// colors contains only one element, giving the oppCol and thus king position
const sameRow = (x == this.kingPos[colors[0]][0]);
const sameColumn = (y == this.kingPos[colors[0]][1]);
if (sameRow || sameColumn)
{
// Look for the enemy rook (maximum 1)
// colors contains only one element, giving the oppCol and thus king position
const sameRow = (x == this.kingPos[colors[0]][0]);
const sameColumn = (y == this.kingPos[colors[0]][1]);
if (sameRow || sameColumn)
{
// Look for the enemy rook (maximum 1)