refactored into nicer functions in game_sources_controller.rb