From 41c8babc7583ff778d409b750e0daf36d9cb174a Mon Sep 17 00:00:00 2001
From: fdai4616 <berkan.sarp@informatik.hs-fulda.de>
Date: Wed, 8 Feb 2023 20:49:40 +0100
Subject: [PATCH] update

---
 src/main/java/PingPong/GamePanel.java | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/main/java/PingPong/GamePanel.java b/src/main/java/PingPong/GamePanel.java
index 40e0f1f..963182a 100644
--- a/src/main/java/PingPong/GamePanel.java
+++ b/src/main/java/PingPong/GamePanel.java
@@ -83,6 +83,12 @@ public class GamePanel extends JPanel implements Runnable {
             newPaddle();
             newBall();
         }
+        if(score.player_1 == 20){
+            score.player_1 = 0;
+            score.player_2 = 0;
+            newPaddle();
+            newBall();
+        }
     }