Refactor games#index and games#show