Fixed bugs in board and pieces classes