adding get method to board. plus a little refactoring