Adapted mgen-battleship to the new mgen generator custom code sections