Wrote some code for draw board