Clean up transposition table code