public void updateCoordinates() {
        if (curDirec != nxtDirec) {
            turn = true;
        }
        if (!turn) {
            handleCoordinates();
        } else {
            turn = false;
        }
        curDirec = nxtDirec;
    }