Fixed but in valid move dection now returns a list of only pieces that have valid moves