almost full working version, only missing objectives and some single card testing