Are you referring to a specific person that the reader already knows? If so, here are options:
1. My favorite teacher can play games with us.
2. My favorite teacher is the one who can play games with us (the others cannot)
If you are not talking about a specific teacher, you could say:
3. If a teacher can play games, he or she will be my favorite.
4. Teachers that can play games are my favorites.