mvoe some play function to board.js