base class for a time-based game