My Pacman Game issues

Try using only == with your conditionals (if) instead of ===

Btw- on mobile so I can not test it. Just something that stuck out to me.