fixing edwin's bad fix on pachisi.js