script uses object too
improved board click handling