Applied your code for getting a random riddle to my code that assigns rooms with keys and the user object code. In this test version if the person ansers the riddle correctly and the room has a key then their key count increases by one, if they answer incorrectly their health decrease by 1.