modify BoardManager
check toX or toY whether out of range