Completed createIslands method