Revrite blackJack Engine. Added tests