rename game.rb, move APIs to a directory