Added logic to display games