Hi!
It's been a while since I've looked at this project, so I can't say off the top of my head, but based off of the error it looks like there's a variable in there somewhere doing something it shouldn't be- apologies for the problem!
Just to confirm, is it something to do with the maze section of the game?