public void initBall() {
        double[] a = coords.get("BALL");
        a[DX] = speedX;
        Random rand = new Random();
        int temp = rand.nextInt(10);
        if(temp < 5) {
            a[DY] = 1;
        }
        if(temp > 5) {
            a[DY] = -1;
        }
        if(temp == 5 || temp < 0) {
            temp = rand.nextInt(10);
        }
        coords.put("BALL", a);
    }