private static int TakeInput(){
        
        int num = -1;        
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        while (true)
        {
            try {
                num = Integer.parseInt(br.readLine());
                
                if (num>=0 && num < Board.rows){
                    break;                
                }
            } catch (Exception ex) {}
            
            System.out.print("Wrong Choice...Type again(0-7): ");
        }
        
        return num;
    }