Idiom
tables are turned.
turn the tables on (someone) - to change a situation so that you now have an advantage over someone who previously had an advantage over you.In the past it was always Dan who was having affairs while Lucy stuck by him. Now the tables are turned.