Encapsulating everything in BeachBall parent object to ensure visibility and protection from undefined variable errors