adds movement to sprite