Tried a fun java Pacman, and had fun understanding the logic and playing with it!
**This is not the original code, not an exact replica of the game, not complete my own version of the game either. It is just to understand the basic logic and flow of the code and its working.
https://www.youtube.com/watch?v=ATz7bIqOjiA
https://www.youtube.com/watch?v=r7i25lbmBd4&t=25s