Initial endgame table code