Chess Set the Piece Turn and Allowed moves

Hi eveyone ,

I’m following the instructions of "Tefel " about making a chess game here is the link to the second part where the scripting of the mouse click on the chess pieces is shown : Unreal Engine 4 Tutorial #2 - Start Chess (part 2) - YouTube

I’m learning blueprints functionality and taking this tutorial as a course , so i decided to add some functionality to the game starting from the end point of this tutorial , for instance how to decide if it is black or white turn and how to go about setting the allowed moves for any piece , below my ways of doing it but i’m failing at it :

Note : the "Dark pieces " item variable (in the pictures 1, 2 ) this is an addition i created in construction script to hold all and only the Black chess pieces .

1- getting the last click color compare it to the next click color and gate the click to open only if last click color is Not equal to next click Color (see picture_1 ).

2- i tried also checking if the last click is black then setting the condition to bool variable then setting that to opposite for the next click by way " is Not bool " ( see picture _2).

So please i need advice on how to do it …!!.???

Thank you.
Best wishes.