How can I only have one checkbox checked at a time

Yes, i forgot to set one more → }) before the function.
This should fix the problem.