for the good ending, you gotta do everything correct, get all the math questions correct, find the ball in the cups game every time and dont flip the cards, while for the other one you gotta do everything wrong basically the opposite of the good ending