refactored draw board method