encapsulate game and world