There is a bit of a challenge to implement your class. To draw on the sketch from your class, you need to pass a reference to your parent sketch right into your class. This can be explained a bit better after you show your code of how you integrate this code with setup()
and draw()
in your code.
For the time being, check this next post about states: Need Help for Game Over / Timer
With states, you can change the page that is displayed. In the first state, you show the intro page, next state you show the menu page, next stage is the game and another state could be game pause or game over.
Kf