modified schematic and routines ball_control, buttons