public void update() {
		//if a global state exists, call its execute method, else do nothing
	    if(pGlobalState != null)   pGlobalState.execute(pOwner);

	    //same for the current state
	    if (pCurrentState != null) pCurrentState.execute(pOwner);
	}