Encapsulated game into class