private void move(Vector movement, ArrayList<Bacteria> baclist){
        //Moves according to the movement vector
        if(movement.getX() > 0.1){
            movement.setX(1);
        }
        else if(movement.getX() < - 0.1){
            movement.setX(-1);
        }

        if(movement.getY() > 0.1){
            movement.setY(1);
        }
        else if(movement.getY() < -0.1){
            movement.setY(-1);
        }

        int xdestination = 0;
        int ydestination = 0;

        if(movement.isNull()){
             xdestination = getXpos() + (int) lastMovement.getX();
             ydestination = getYpos() + (int) lastMovement.getY();
        }
        else {
            xdestination = getXpos() + (int) movement.getX();
            ydestination = getYpos() + (int) movement.getY();

            lastMovement = movement;
        }

        //If there is a bacteria blocking that position, do nothing
        for(Bacteria bac : baclist){
            if(bac != this && Math.abs(bac.getXpos() - xdestination) <= 0 && Math.abs(bac.getYpos() - ydestination) <= 0){
                return;
            }
        }

        setXpos(xdestination);
        setYpos(ydestination);

        //We will need to have a random initial movement just in case the movement vector is 0,
        //so the bacteria can always continue moving in the last direction
    }