Added bankrupt flag and detection. Need to calculate liquid assets and handle bankruptcy.