so when you rock the bike and and the bike starts the problem is the wire that comes through the ignition has a problem (does not carry enough volts/amps) and when you rock the bike you align the starter and flywheel teeth and it will start.
@Rocket Scientist has an extra relay that he uses to...