An adaptive module for tictac forked from play.js