Dungeon City: Finished refactoring _getNumAdjacentWithTile and added random to Array prototype