Fix typo
Encode piece color and type with better density
Fix perft debug precision
Add side to move