Implementing the feature in which the selected piece is highlighted.