added clear, and minor fixes
started engine code
minor edits to skeleton
added get_opposite code