It is probably the opto. You can put the game into switch test and bang around the playfield and see if you can get it to trigger from vibration. If so, check the solder joints for the opto itself, the connectors and you might even need to re-do the connectors as the wire in the IDC pin might be making poor or intermittent contact.