Improved Encapsulation of the game scripts