How do you create a wall?

Hi people!

I’m making a maze game, so I need walls that the cube can’t pass through.

This is an example: