simplify equals code
handle board bounds exception