Add interface and finish rand map generation