fixed issue with enum'ing properties
added collision detection to example1