creating base game engine