LLD - Design — Chess Game
Analyze this en passant capture code snippet and identify the logical error:
if opponent_pawn.just_moved_two_squares and pawn.position == (opponent_pawn.position[0], opponent_pawn.position[1] + 1):
capture(opponent_pawn)