Implemented _isLegalMoveForPawn() and _getIndicesForMove().