starting to replace some code to be more event driven.
added event for ball collision.