added collision event. added all the variables from the supermario demo.
compiled state