added a function to query games by status