Improved board equals check