create hexagon map class and clean up code