Added Cuby bouncing and event handling