added movement logic