Implementation of a basic card game engine