Win as soon as moving to the last gold square.

This ensures that you cannot lose when you're on the last gold square
(and should win) and are about to hit a ghost.
This commit partially reverts 86eabdd.