You have nothing to determine what is slot 1 or slot 2 ? You need something additional like an instance variable for slot number and pick that way. Also you can't pick in this way as the first condition narrows it to only slots that have animation frame 1. There will be a better way to go about what you're attempting, probably where you determine if you have wood or steel in separate events.