Firebase Data Tree for 1 vs 1 Player system

So here is the thing i want to create an 1vs1 system for testing more of firebase real time database and what can we do to improve the database efficacy i wold love to get some help on how wold that be posible i have some idea about what should i be doing but still cant understand some things.any help would be appreciated.

thank you.