private static void moving() {
        while (true) try {
            Thread.sleep(2);
            if (posYR >= 630) {
                posYR = 630;
            }
        } catch (InterruptedException e) {
            // TODO Auto-generated catch block
            e.printStackTrace();
        }
    }