AIMove onTestHockeyistFriction(AIHockeyist hockeyist) {
        AIManager manager = AIManager.getInstance();
        AIRectangle rink = manager.getRink();
        AIPoint center = manager.getCenter();

        AIMove move = new AIMove();
        if (!visitedOrigin) {
            double d = hockeyist.angleTo(rink.origin);
            move.setTurn(d);
            move.setSpeedUp(1);
            if (hockeyist.distanceTo(rink.origin) < 2*AIHockeyist.RADIUS) {
                move.setSpeedUp(0);
                if (hockeyist.getSpeedScalar() < 0.1) {
                    move.setTurn(hockeyist.angleTo(rink.getRight(), hockeyist.getY()));
                    if (hockeyist.angleTo(rink.getRight(), hockeyist.getY()) < AI.DEGREE) {
                        visitedOrigin = true;
                    }
                }
            }
        } else {
            move.setSpeedUp(1);
        }
        if (visitedOrigin && hockeyist.getX() > center.x) {
            move.setSpeedUp(0);
            if (hockeyist.getSpeedScalar() > 0.005) {
                System.out.println(String.format("%.2f,%.2f;", hockeyist.getSpeedScalar(), hockeyist.distanceTo(center.x, hockeyist.getY())));
            }
        }
        return move;
    }