The first version I had could complete the no ghost one, but the next versions couldn't even do that. And i think i still have a minor bug in the path finding when it can't find a path with a value now it always goes to the left bottom corner instead of searching the full grid to see if it can find a path with a dot in it. I also think I need to decrease the value for the bonus when there aren't that many dots left. It will now almost always go for the bonus. I definitely have a problem in the full search as you can see from a the screen shots.
Ah well here is a screen shot:


