Corrected parameters in makeMove function (board[][8] was not used)
Corrected variable types to avoid comparison of signed and unsigned variables