merge borders to basic movement