Thanks! The algorithm is a brute force check of the best movements but even though it was working (giving me the movement with a 2-move in advance consideration) I could not translate it to the game in time hahaha. The engine basically tries to capture the piece with the most material it can, looking only 1 move forward.
Hopefully I'll polish it to make it a little bit more interesting hahaha