Update main.js - updateGrid function

I tried to create an updateGrid function. The purpose of it is to update the maze when the level is clear, there are a couple of lines in the moveRight() function to test it.