Modifying boat flag code