public void directionForce(final int x){
        if(pointChargePosX >= particleXpos && pointChargePosY < particleYpos){
            electroForce.setEndX((particleYpos+(particleCharge()*230))/slopeLine);
            electroForce.setEndY(((slopeLine*particleXpos)-(particleCharge()*230)));       
        }
        if(pointChargePosX < particleXpos && pointChargePosY <= particleYpos){
            electroForce.setEndX(((particleYpos-(particleCharge()*230))/slopeLine));
            electroForce.setEndY(((slopeLine*particleXpos) - (particleCharge()*230)));
        }
        if(pointChargePosX <= particleXpos && pointChargePosY > particleYpos){
            electroForce.setEndX(((particleYpos-(particleCharge()*230))/slopeLine));
            electroForce.setEndY(((slopeLine*particleXpos) +(particleCharge()*230)));
        }
        electroForce.setEndX(((particleYpos+(particleCharge()*230))/slopeLine));
        electroForce.setEndY(((slopeLine*particleXpos) +(particleCharge()*230)));
    }