Deletion of global filled and copy_board function in main.