added bounds to moveTowards