extract out the moves api
clean up the board component a bit
use strict everywhere