precompute hands