private Direction getDirectionToMove() {
		ArrayList<Direction> crossableDirections = new ArrayList<Direction>();
		
		Direction directionToMove;
		int numDirections;
		
		Set<Direction> directionSet=myPosition.getAllDirections(); //get set of all available positions to move off this tile
		
		for(Direction d: directionSet){
			if(myPosition.isCrossable(d)){
				crossableDirections.add(d);
			}
		}
		
		//search for player adjacent to me.  This is the preferred direction to move.
		for(Direction d: crossableDirections){
			if(myPosition.getCharacter(d) instanceof Player)
			{
				return d;
			}
		}
		
		//generate a random direction
		Random randomGenerator = new Random();
		int randomDirectionIndex = randomGenerator.nextInt(crossableDirections.size());
		
		directionToMove = directions[randomDirectionIndex];
		
		return directionToMove;
	}