Order moves for alpha beta pruning

This commit also makes some minor modifications to
the network client to resolve a bug in which a loss
caused the bot to crash.