draw board function