Using games in mathematics teaching