I run Main.java and input the sequence of commands left, left, left, left, up, up, after which the PacMan should loose his life and return to his starting position. Instead he keeps moving.
The problem was in void handleMovements(int, int) in Game.java. There was no indicator to tell us whether PacMan lost his life or not after the collision with ghosts. Now this is fixed by converting method resolveCollison(Ghost, boolean) into boolean and using conditionals in void handleMovements(int, int)