public boolean foodAhead() {
		if (direction.equals(Direction.RIGHT)) {
			return map.getTrailAt(x, (y >= h - 1 ? 0 : y + 1));
		}
		if (direction.equals(Direction.LEFT)) {
			return map.getTrailAt(x, (y <= 0 ? h - 1 : y - 1));
		}
		if (direction.equals(Direction.UP)) {
			return map.getTrailAt((x <= 0 ? w - 1 : x - 1), y);
		}
		if (direction.equals(Direction.DOWN)) {
			return map.getTrailAt((x >= w - 1 ? 0 : x + 1), y);
		}
		return false;
	}