Encapsulated the game layer