Check for black pawn
lookFor = ' p ' NEW_LINE if inBounds ( i - 1 , j - 1 ) and board [ i - 1 ] [ j - 1 ] == lookFor : NEW_LINE INDENT return True NEW_LINE DEDENT if inBounds ( i - 1 , j + 1 ) and board [ i - 1 ] [ j + 1 ] == lookFor : NEW_LINE INDENT return True NEW_LINE DEDENT return False NEW_LINE