HashMap Java error "null", help me please guys : Hello I am making a project work for my Java courses. I wrote a TicTacToe programm, but I didn`t checked all methods, but only put method and sout method I have a null HashMap instead of 1 in it. 


This is what I have in the console:

Input your column
1
Input your row
1
null (ticTacToe.toConsole();)


Where is a mistake?

TicTacToe test class:

    package TicTac;

    import java.util.Scanner;

    public class TicTacToeTest {
        public static void main(String[] args) {
            Scanner scanner = new Scanner(System.in);
            TicTacToe ticTacToe = new TicTacToe();
            System.out.println("Input your column");
            int column = scanner.nextInt();
            System.out.println("Input your row");
            int row = scanner.nextInt();
            ticTacToe.selection(column,row);
            ticTacToe.toConsole();
         }
    }

And main TicTacToe class:
    package TicTac;

    import java.util.ArrayList;
    import java.util.HashMap;

    public class TicTacToe {
         HashMap<Integer, String> board = new HashMap<>();
         public void selection(int column, int row) {
             String xOrO = "x";
             if (column == 1 && row == 1) {
             board.put(1,xOrO);
            } else if (column == 1 && row == 2) {
                board.put(2,xOrO);
            } else if (column == 1 && row == 3) {
                board.put(3,xOrO);
            } else if (column == 2 && row == 1) {
                board.put(4,xOrO);
            } else if (column == 2 && row == 2) {
                board.put(5,xOrO);
            } else if (column == 2 && row == 3) {
                board.put(6,xOrO);
            } else if (column == 3 && row == 1) {
                board.put(7,xOrO);
            } else if (column == 3 && row == 2) {
                board.put(8, xOrO);
            } else if (column == 3 && row == 3) {
                board.put(9,xOrO);
            }
             else {
                System.out.println("Wrong data");
            }
        }

         public void checker() {
            for (int i = 1; i < 2; i++) {
                 if (board.get(1).equals(board.get(2)) && 
     board.get(2).equals(board.get(3))){
                System.out.println(board.get(1) + " player won!");
            } else if (board.get(4).equals(board.get(5)) && board.get(5).equals(board.get(6))){
                System.out.println(board.get(4) + " player won!");
            } else if (board.get(7).equals(board.get(8)) && board.get(8).equals(board.get(9))) {
                System.out.println(board.get(7) + " player won!");
            } else if (board.get(1).equals(board.get(4)) && board.get(4).equals(board.get(7))) {
                System.out.println(board.get(1) + " player won!");
            } else if (board.get(2).equals(board.get(5)) && board.get(5).equals(board.get(8))) {
                System.out.println(board.get(2) + " player won!");
            } else if (board.get(3).equals(board.get(6)) && board.get(6).equals(board.get(9))) {
                System.out.println(board.get(3) + " player won!");
            } else if (board.get(1).equals(board.get(5)) && board.get(5).equals(board.get(8))) {
                System.out.println(board.get(1) + " player won!");
            } else if (board.get(3).equals(board.get(5)) && board.get(5).equals(board.get(7))) {
                System.out.println(board.get(3) + " player won!");
            }
        }
    }

    public void toConsole(){
        for (int i = 0; i < board.size(); i++) {
            System.out.println(board.get(i));
        }
    }

}
