Java stack for recording chess games