Solves the maze areas problem described here, in javascript.