maint: Refactor ball.c to use GTK frame clock

* ball.c: Likewise.