Adding code for the creation of islands -- fixing the state of the code