Unified functions move,rotate,round by calling the same modifyLines with
an argument a function on what to modify