swap indices to get visibility of each ship