added drawBoard function