Domination game on paths and cycles