added SubStateMachine Class
added classes for representing player and enemies