Created a 3*3 world you can walk around in surrounded by walls. you can WALK…