Modified pointerlockcontrols, so that wall collision is resolved properly. 
There are some glitches though.