public void setRichtung(int keyCode){
        System.out.println(keyCode);

        switch (keyCode){
            case 38: //nach KeyCode[x] abfragen, für mehrere Schlangen
                //up
                if(!checkDirection.equals("down")){
                    richtung = new Point(0,-1);}
                checkDirection = "up";
                break;
            case 39:
                //right
                if(!checkDirection.equals("left")){
                    richtung = new Point(1,0);}
                checkDirection = "right";
                break;
            case 40:
                //down
                if(!checkDirection.equals("up")){
                    richtung = new Point(0,1);}
                checkDirection = "down";
                break;
            case 37:
                //left
                if(!checkDirection.equals("right")){
                    richtung = new Point(-1,0);}
                checkDirection = "left";
                break;
        }

    }