private void AIteleport() {
        if (ball.getX() < 100 && ball.getVx() > 0) {
            if (tempBallReturned + 1 == player1.getBallReturned() && tempBallReturned != 0) {
                if (player2.useTeleport()) {
                    createTeleport();
                    tempBallReturned = 0;
                }
            }
        } else {
            tempBallReturned = player1.getBallReturned();
        }
    }