Said mayor and council shall have full power and authority to license billiard tables, pool tables and ten-pin alleys, and all billiard tables kept or used for the purpose of playing, gaming or renting, and all ten-pin alleys, nine-pin alleys of any kind, which are kept or used for the purpose of playing on with pins or balls, or either for the purpose of renting the same and to charge for said license such sum as they may by ordinance prescribe.