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.
Merge pull request #1 from gsutavo/patch-1

Update main.js - updateGrid function