This is a version of PacMan that auto-generates a maze every time you start it up. The Algorithm used is called a Recursive Backtracker. (Link to wiki in notes). Hit the flag to start, use arrow keys to move. Collect all the dots to win!
I found the algorithm for generating the maze here: https://en.wikipedia.org/wiki/Maze_generation_algorithm