If the game 'sees' a ball in the cannon (from a non-working or dirty opto) it will move the cannons. It could do one or the other or both, it depends on what the state it's seeing is.
Like SantaEatsCheese says, it's likely the cannon looms. Replace both.