private void jLabelTableMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabelTableMousePressed
        try{
            lastX = evt.getX();
            lastY = evt.getY();
            lastEdge = board.getEdge(lastX, lastY);
            
            //play
            if(dotsAndBoxesPlay.play(lastEdge) != null){
                lastState = dotsAndBoxesPlay.play(lastEdge);
                lastBoardImage = board.getBoardImage(lastState, lastBoardImage);
                jLabelBoard.setIcon(lastBoardImage);
                
                if(dotsAndBoxesPlay.checkFinish())
                    JOptionPane.showMessageDialog(null, 
                            dotsAndBoxesPlay.getResults());
            }          
        }catch(IOException ex){
            ex.printStackTrace();
        }        
    }//GEN-LAST:event_jLabelTableMousePressed