Refactor Moves::init_masks()