fix findbugs error
fix equals error for board of different dimension