Tile-based Movement which I am unsure of

I’ve Been Entranced by the GBA Fire Emblem games and started to make one myself on Makecode. However, I am unsure about one thing . . . To Show Where the Player Can Move the Tiles are colored blue and can see the enemies movement by hovering over them. (Example :

)

However, to do this, I’m manually setting each tile surrounding the player with blue tiles and surrounding the enemy with red tiles (pretty much what’s in the image above), Excluding mountains in the casting. Is there a better possible way to do this or am i doing it correctly?

I don’t know of any better way, and for me as long as it works and I cant think of a better method I use it.