got the games query working