/**
  * Displays Game Finished screen. Receives one argument (int) that controls if it displays win or
  * loose. 0=win, anything else is loose.
  */
 public void displayFinished(int i) {
   emptyArrays();
   // true
   if (i == 0) {
     winGame.setVisible(true);
     if (dBg) System.out.println("Win screen displayed");
   } else {
     loseGame.setVisible(true);
     if (dBg) System.out.println("Loose screen displayed");
   }
   mainMenu.setVisible(true);
   // false
   board1Label.setVisible(false);
   board2Label.setVisible(false);
   StarshipBattleTextLabel.setVisible(false);
   enemyBoardText.setVisible(false);
   myBoardText.setVisible(false);
   returnToMain.setVisible(false);
   ship1.setVisible(false);
   ship2.setVisible(false);
   ship3.setVisible(false);
   ship4.setVisible(false);
   ship5.setVisible(false);
   gameErrors.setVisible(false);
   whatIsHit.setVisible(false);
   whatIsMiss.setVisible(false);
 }
  /** Displays Game Screen. */
  private void displayGame() {
    // true
    board1Label.setVisible(true);
    board2Label.setVisible(true);
    StarshipBattleTextLabel.setVisible(true);
    enemyBoardText.setVisible(true);
    myBoardText.setVisible(true);
    returnToMain.setVisible(true);
    ship1.setVisible(true);
    ship2.setVisible(true);
    ship3.setVisible(true);
    ship4.setVisible(true);
    ship5.setVisible(true);
    gameErrors.setVisible(true);
    whatIsHit.setVisible(true);
    whatIsMiss.setVisible(true);

    // false
    getServerName.setVisible(false);
    getIpNumber.setVisible(false);
    getPlayerNames.setVisible(false);
    back.setVisible(false);
    InstructionsBigText.setVisible(false);
    InstructionsText.setVisible(false);
    Credits.setVisible(false);
    Difficulty.setVisible(false);
    Easy.setVisible(false);
    Medium.setVisible(false);
    Hard.setVisible(false);
    MediumInput.setVisible(false);
    Start.setVisible(false);
    Cancel.setVisible(false);
  }
  /** Displays startscreen. */
  private void displayStart() {

    // true
    StarshipBattleTextStart.setVisible(true);
    BackgroundShip1.setVisible(true);
    BackgroundShip2.setVisible(true);
    NewgameText.setVisible(true);
    InstructionsSmallText.setVisible(true);
    HighscoreText.setVisible(true);
    ExitGameText.setVisible(true);
    winGame.setVisible(false);
    loseGame.setVisible(false);
    mainMenu.setVisible(false);
    // false
    whatIsHit.setVisible(false);
    whatIsMiss.setVisible(false);
    gameErrors.setVisible(false);
    highScore.setVisible(false);
    ship1.setVisible(false);
    ship2.setVisible(false);
    ship3.setVisible(false);
    ship4.setVisible(false);
    ship5.setVisible(false);
    PlayerVsComp.setVisible(false);
    PlayerVsPlayer.setVisible(false);
    TwoPlayerVsTwoPlayer.setVisible(false);
    back.setVisible(false);
    InstructionsBigText.setVisible(false);
    InstructionsText.setVisible(false);
    HighscoreBigText.setVisible(false);
    BigInput.setVisible(false);
    Credits.setVisible(false);
    board1Label.setVisible(false);
    board2Label.setVisible(false);
    StarshipBattleTextLabel.setVisible(false);
    enemyBoardText.setVisible(false);
    myBoardText.setVisible(false);
    returnToMain.setVisible(false);
    ip.setVisible(false);
    serverName.setVisible(false);
    password.setVisible(false);
    newPassword.setVisible(false);
    verifyPassword.setVisible(false);
  }