Added new movement logic