Moved earnGold() method into Map() class.
Indent code