Update greed.js

finally a reasonably working prototype, didn't realize gold coins and gems were not of type 'coin', that was messing up my pathfinding algorithm.