Fix bug when navigating through history until the beginning of the game
Add one test
Fix check detection
Fix board clone code
Fix "do move" and "revert move"
Use cloned board to find piece allowed positions