implement some basic game class