public void move() {

        if(direction.equals("right") || direction.equals("left")) {
            x += dx;
        }

        if(direction.equals("up") || direction.equals("down")) {
            y += dy;
        }

        //keep Leon from going off the screen
        if(x < 1) {
            x = 1;
        }

        if(x > 1450) {
            x = 1450;
        }

        if(y < 1) {
            y = 1;
        }

        if(y > 840) {
            y = 840;
        }
    }