public void getNextPosition() {
        if (left) {
            x = x - moveSpeed;
        }

        if (right) {
            x = x + moveSpeed;
        }

        if (down) {
            y = y + downSpeed;
        }
    }