rewrite code, add ScoreBar to MainWindow how JPanel