Script to turn the Raspberry Pi into controller for a custom game