Towards a better understanding of wall-driven square cavity flows using the lattice Boltzmann method