The role of loop footpoints rotation in single loop flares