Fix errors in board elements and win condition chack