public void printBoard(){
        for (int i=0; i < width; ++i){
            for (int j=0; j< height; ++j){
                int isHit = board[i][j];
                if (isHit == EMPTY) System.out.print(" | ");
                else if (isHit == HIT) System.out.print("o | ");
                else System.out.print("x | ");
            }
            System.out.print("\n----------------------------------------\n");
        }
        System.out.println();
    }