Moved getKeyByValue to GeneralUtil, and cleaned up the code in MapSheeps and MapViewer