How to create a Grid floor plane (basic black with white grid lines) and able to move my character from tile to tile using movement buttons?

Hello.

Can you advice, how to make cells like this - with changing color of cells and spheres on cells angles? I mean, how to realise it with your material code?

Thank you!