refactor boardCX/boardCY and handX handY