Implement sending update to minimax process.
Many small fixes, may eventually go upstream.