That's now fixed. Since finished games have no legal moves left, $legalmoves was null, and then $legalList got assigned to null, which threw a fatal error a little further down. It now gets assigned to an empty array if $legalmoves is null, which allows things to work correctly.
That's now fixed. Since finished games have no legal moves left,
$legalmoves
was null, and then$legalList
got assigned to null, which threw a fatal error a little further down. It now gets assigned to an empty array if$legalmoves
is null, which allows things to work correctly.