Bugfixes. Eliminated init_board function.