public  void  changeState(State<BaseGameEntity> pNewState)
	  {
	    if(pNewState == null) System.out.println("<StateMachine.changeState>: trying to change to NULL state");

	    //keep a record of the previous state
	    pPreviousState = pCurrentState;

	    //call the exit method of the existing state
	    pCurrentState.exit(pOwner);

	    //change state to the new state
	    pCurrentState = pNewState;

	    //call the entry method of the new state
	    pCurrentState.enter(pOwner);
	  }