public void moveToFood() {
		
		if (x < Tree.getTreex()) {
			isRPress = true;
		} else if (x > Tree.getTreex()) {
			isLPress = true;
		}
		if (y > Tree.getTreey()) {
			isUPress = true;
		} else if (y < Tree.getTreey()) {
			isDPress = true;
		}
		if (Math.sqrt(Math.pow(x - Tree.getTreex(), 2) + Math.pow(y - Tree.getTreey(), 2)) <= Tree.getSize() - 2) {
			eat();
			stopMoving();
		}
	}