Moved listing games logic to controller.