Hotfix: code didn't work because secretCodeLength was 3 whilist the code bein 4 characters long