drawBoard JS function added