public void setDirection(Point direction) {
		if (direction.equals(invertDirection(this.direction))) {
			if (invertedBevoreMoves >= INVERT_FREQUENCY_MAX) {
				this.direction = invertDirection(getLastGlied().getDirection());
				invert();
			}
		} else {
			this.direction = direction;
		}
	}