private void formMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_formMousePressed
                GUIControl.getInstanceOf().restoreAllOriginalTileColors();
                if (this.getComponentCount() > 0) {
                        GUIControl.getInstanceOf().iluminarPosicoesPossiveis(this);
                        System.out.println(this.getPecaView().getPeca().getPosicao());
                }

                if ((getComponentCount() == 1) && GUIControl.getInstanceOf().getPosicaoBuffer() != null) {
                        GUIControl.getInstanceOf().moverPeca(GUIControl.getInstanceOf().getPosicaoBuffer(), this.getPecaView().getPeca().getPosicao());
                        GUIControl.getInstanceOf().setPosicaoBuffer(null);
                } else if (getComponentCount() > 0) {
                        GUIControl.getInstanceOf().setPosicaoBuffer(getPecaView().getPeca().getPosicao());
                } else if ((getComponentCount() == 0) && GUIControl.getInstanceOf().getPosicaoBuffer() != null) {
                        GUIControl.getInstanceOf().moverPeca(GUIControl.getInstanceOf().getPosicaoBuffer(),
                                GUIControl.getInstanceOf().getChessTable().getPosicaoTile(this));
                        GUIControl.getInstanceOf().setPosicaoBuffer(null);
                }


        }//GEN-LAST:event_formMousePressed