The number of candles in the room represent the order the numbers should go. It worked just fine the last time i checked but i will check it again once i get home. I am glad you liked the game though and I am sorry for the problems you encountered.
I just checked It, the door works fine, the code is 8137. Again, sorry for not making that puzzle a bit more clear!