Fixed errors in FindTreasure()