added check to make sure there are free tiles left at the edge of the world before a flood can occur