public void run () {
        running = true;
        while (running) {
            try {
                Thread.sleep (timeInterval);
            } catch (Exception e) {
                break;
            }

            if (paused) {
                running=MoveOn();
                if (running) {
                    setChanged (); //modelul a fost updatat, se va notifica View-ul
                    notifyObservers (); //notificam toti observer-i acestui element
                } else {
                    //highscore
                    Checkscore();
                    int a=JOptionPane.showConfirmDialog (null,"Play again!","GAME OVER!", JOptionPane.INFORMATION_MESSAGE);
                    if(a==0) {
                        JOptionPane.showMessageDialog(null, "Press Space to play!", "Play", JOptionPane.WARNING_MESSAGE);
                        reset(); //daca s-a apasat OK, jocul se va restarta si trebuie apasata tasta Space pentru a incepe
                    }
                    else
                        System.exit(1);



                }

            }
        }
        // running = false;
        // sau aici
    }