made sure the scanner is closed. 
now the test of the BattleShipGame ui runs the whole program.