private MOVE getRetreatActions(Game game,GHOST ghost)
    {
    	int currentIndex=game.getGhostCurrentNodeIndex(ghost);
    	int pacManIndex=game.getPacmanCurrentNodeIndex();
    	
        if(game.getGhostEdibleTime(ghost)==0 && game.getShortestPathDistance(currentIndex,pacManIndex)<PACMAN_DISTANCE)
            return game.getApproximateNextMoveTowardsTarget(currentIndex,pacManIndex,game.getGhostLastMoveMade(ghost),DM.PATH);
        else
            return game.getApproximateNextMoveTowardsTarget(currentIndex,game.getPowerPillIndices()[cornerAllocation.get(ghost)],game.getGhostLastMoveMade(ghost),DM.PATH);
    }