Feedback plays incorrect sound for both images

Using PsychoPy version 2023.2.3

Hi, I’m struggling to get my code to work right. The task at hand is a training task where three images are displayed on the upper area of the screen and then two additional images appear on the lower half. One of the images matches the past three images, the other is a random image. When the correct image is selected, a positive sound should play and when the wrong image is selected it should be the negative sound being played. However, no matter what image I select the negative sound always plays.