Project: jotai
Task (challenging): Implement a recording and replay system for Gomoku games.
1) Every games will be auto recorded, and can be replayed by play button (.replay-play-btn) after the game is finished. 
2) Add play/pause button (className '.replay-play-btn', '.replay-pause-btn') and a slider (className '.replay-slider') to navigate through game moves.
3) When replaying, show the current move number with className '.current-move'. 
4) There is an interval of 1000 ms between each move.
5) Create replayStateAtom and replayControlsAtom to manage replay functionality.
Constraint: DO NOT use any third-party packages; ONLY React/Jotai APIs are permitted.