creating algorythm for making turn based for captains