updates stylesheet and prevents changing opponent's piece