Remove some unused code
Do not refer to main window in board window code