Use a class to hold world state