added comments and
fixed setBoard's const issue (+comments)