Check for black pawn
lookFor = ' p ' ; if ( inBounds ( i - 1 , j - 1 ) && board [ i - 1 , j - 1 ] == lookFor ) return true ; if ( inBounds ( i - 1 , j + 1 ) && board [ i - 1 , j + 1 ] == lookFor ) return true ; } return false ; }