created SideScrollGame class as base class for game.