added mouse events that rotate ball