I run Main.java and input the command "UP". Up from PacMan is a wall. He goes into the wall instead of keeping its current position
The problem was in handleMovements() in Game.java, as we did not check whether PacMan's next postion is a wall or not, but rather it's current position. Now it is fixed