added movement functionality