diff --git a/src/main/java/pacmanGame/Program.java b/src/main/java/pacmanGame/Program.java index 734bfc4..d835fa4 100644 --- a/src/main/java/pacmanGame/Program.java +++ b/src/main/java/pacmanGame/Program.java @@ -42,9 +42,11 @@ public class Program { } public void ForwardInputToGameManager() { - for (char inputChar : input.inputList) { - gameManager.ProcessInput(inputChar); - } + try { + for (char inputChar : input.inputList) { + gameManager.ProcessInput(inputChar); + } + } catch (Exception e) {} input.inputList.clear(); }