reformatte poker code