private static void winCondition() {

                // If the alien and the predator are on the same node
                if (ship.getAlienNode().equals(ship.getPredatorNode())) {

                        // prints to the status bar
                        uigui.changeWinStatus("  The Alien Wins");

                        // Display message indicating the Alien's victory
                        JOptionPane.showMessageDialog(uigui.getGUI(), "THE ALIEN WINS!!!!! AHHHHHH", "", JOptionPane.INFORMATION_MESSAGE);

                        // Close the program
                        System.exit(0);
                }
                // If the predator is at the control room and he has walled
                // himself off
                // from the alieen
                if (ship.getPredatorNode().equals(controlNode) && ship.getPath(ship.getPredatorNode(), ship.getAlienNode()) == null) {

                        // prints to the status bar
                        uigui.changeWinStatus("  The Predator Wins");

                        // Display message indicating the Predator's victory
                        JOptionPane.showMessageDialog(uigui.getGUI(), "THE PREDATOR IS A WINNER", "", JOptionPane.INFORMATION_MESSAGE);

                        // Close the program
                        System.exit(0);
                }
        }