Add latest bughouse.js code and sync board state