Refactors code. Isolates Pieces#Unfiltered_moves