public String eyeRoll(Ghost ghost){
		int x = (int)ghost.getX();
		int y = (int)ghost.getY();
		
		String ret = "left";
		if(x < 247){
			ret = "right";
		}
		else if(x > 307 ){
			ret = "left";
		}
		else if(y > 286){
			ret = "up";
		}
		else if(y < 286){
			ret = "down";
		}
		if (x < 27 || x > 547 || y== 286){
			ghost.setX(260);
			ghost.setY(290);
			ghost.setStateChasing();
			ghost.doReset.set(true);
			return "";
		}
		else if (y < 27 || y > 586){
			ghost.setX(260);
			ghost.setY(290);
			ghost.doReset.set(true);
			return "";
		}
		return ret;
	}