Have a read through the Judge Dredd club thread, this issue has been covered many times. It's most likely going to be an opto problem somewhere, possibly the trough and could also be the crane drop opto as well. To test the trough opto's, remove all 6 balls from the trough, go into switch test and then roll the balls 1 by 1 back past the flippers into the trough. If all opto's are working it will register them all as the first ball rolls into the trough to the end. That's a good start, if the trough opto's are all working then start testing all the others, ramps, crane drop, etc. The crane drop opto, when not working well, in particular can make the machine do some weird things, very much like you have described