Moves function for returning the captured piece
Filtering backward moves by piece set now