cleaning up poker.js