public static void maintainDirection(Entity snake){
        switch(Movement.returnMovementDirection()){
            case 0:
                snake.getPosition().updateYPosition(1);
                break;
            case 1:
                snake.getPosition().updateYPosition(-1);
                break;
            case 2:
                 snake.getPosition().updateXPosition(1);
                break;
            case 3:
                 snake.getPosition().updateXPosition(-1);
                break;
        }
    }