Problem with collision resolution
Moved collision resolution inside PointerLockControls.js
Moved global variables to separate file so that PointerLockControls can also access it