Fixed function vwall

Need to add the recursion as well as fix main.