I would test with the glass off. Start a game. Plunge the ball, then pick it up. Manually trigger switches, see if a particular one kicks out another ball.
Also go into switch test mode and make sure the trough switches are working properly. If the game thinks there is an extra ball in the trough it does weird things.
And make sure you have the right number of balls, I think PotC takes four.