refactor starting_positions method