collide character with walls when moving