public void AImove(Ball ball, int height) {
        cnt++;
        if (cnt == 2) {
            cnt = 0;

            //center = (y + (length / 2));
            if (y + length < ball.getY() + ball.getRadius()) {
                moveDown();
            }

            if (y > ball.getY()) {
                moveUp();
            }

        }
    }