added bi flag for randomly showing either card front or back