Factored out unnecessary piece parameter in determineLegalMoves()