Mushy01:
IRL you can take a drop from an unplayable lie
A drop may not help as invariably you are dropping into the same problem (2 club lengths). A stroke and distance (ie original spot the ball was played) and keeping the point directly between the hole and the spot on which the ball landed, with no limit to how far behind that point the ball may be dropped are the other options available for an unplayable lie.
The last option would be too difficult and contentious to program, but a stroke and distance is an option to be allowed. I am not sure a 2 club length drop woukd be feasible to either program or whether the result would benefit the player (how could the program decide with is the best place to drop).