Wow, i didnt even think about using a dictionary. Maybe i rebuild the basis of the game trying to do like that. I used colliders with overllap circle to check if there is or not a collider, and using colliders with grid based movement doesnt work that good.