The idea is cool but I think the AI for Pacman can be improved further if you had time.you can trap him by leading him away from the power-ups and then it does not run away.