Automatically marks non-star cells in rows, columns, and diagonals around stars in Star Battle puzzles, ensuring no adjacent stars.