Team wins state title, then loses on appeal