refactored so that board uses 0-8 rather than 1-9