public void collideFrame()
    {
        for(int i = 0;i < balls.length;i++)
        {
            if(balls[i].getX()-balls[i].getRadie() < 0)
            {
                balls[i].setSpeed(new Vektor2D(-balls[i].getSpeed().getX(),balls[i].getSpeed().getY()));
                balls[i].setX(balls[i].getRadie());
            }
            if(balls[i].getX()+balls[i].getRadie() > Consts.FRAMESIZEX)
            {
                balls[i].setSpeed(new Vektor2D(-balls[i].getSpeed().getX(),balls[i].getSpeed().getY()));
                balls[i].setX(Consts.FRAMESIZEX-balls[i].getRadie());
            }
            if(balls[i].getY()-balls[i].getRadie() < 0)
            {
                balls[i].setSpeed(new Vektor2D(balls[i].getSpeed().getX(),-balls[i].getSpeed().getY()));
                balls[i].setY(balls[i].getRadie());
            }
            if(balls[i].getY()+balls[i].getRadie() > Consts.FRAMESIZEY)
            {
                balls[i].setSpeed(new Vektor2D(balls[i].getSpeed().getX(),-balls[i].getSpeed().getY()));
                balls[i].setY(Consts.FRAMESIZEY-balls[i].getRadie());
            }
        }
    }