separated the moveSelection into a method with moveSelection name and
added a if condition (if htere is a selection then move)