Pacman and Ghost

The 5-year-old son of a friend requested that Pacman should really close his mouth.

So I searched for old Pacman games and looked closer than I had done before. My mistakes were clearly obvious. Plus – by playing a few rounds of the old game in a browser I realized that the ghosts are an important part of it. So I decided to add on to my previous code.

Here is the revised version.

What did I learn from this? Getting reference is as important in coding as it is in art.