code for the adventurers game