reworking random block and adding map