added userinput to movement