Detect foosball goals and track game and match scores with a Raspberry Pi